<?php
	$css_list[0]['url'][] = './tpl/css/general.css';
	$css_list[0]['url'][] = './tpl/css/book.css';
	$css_list[0]['url'][] = './tpl/css/search.css';
	$js_list[0] = './public/js/jquery.masonry.js';
?>
<!--{template inc/header_w}-->
<div class="main_body">
    <!--{template inc/search_tabs}-->
    
    <div class="blank20"></div>

    <div class="search_user_list">
        <div class="i_title">与"{cutstr $keyword 30}"相关的会员</div>
        <ul id="search_result_list">
            <!--{loop $user_list $user}-->
            <li>
                <div class="i_item">
                    <div class="i_info">
                        <div class="i_img"><a href="{u u/index uid=$user['uid']}" ><img class="GUID" uid="{$user['uid']}" src="{avatar $user['avatar'] m}" alt="{$user['user_name']}"></a></div>
                        <div class="i_name">
                            <a class="GUID" uid="{$user['uid']}" href="{u u/index uid=$user['uid']}">{$user['user_name']}</a>
                            <span >&nbsp;</span> <span>粉丝{$user['fans']}人</span>
                            <!--{getfollow $user['uid'] inc/getfollow/search_user}-->
                        </div>
                    </div>
                    <div class="i_intro">
                        <?php
                            if(!empty($user['share'])){
                                echo cutstr(strip_tags($user['share']),100).'<span>'.$user['share_time'].'</span>';
                            }else{
                                echo cutstr(strip_tags($user['introduce']),100);
                            }
                        ?>
                    </div>
                </div>
            </li>
            <!--{/loop}-->
            <div class="g_clear"></div>
        </ul>
	</div>
	<!--{if $pager['page_count'] > 1}-->
	<div style="padding-top:30px" class="clr">
		<div class="pagination"> 
			<!--{subtemplate inc/pages}--> 
		</div>
	</div>
	<!--{/if}-->


    {if empty($user_list)}
    <div class="no_found">
        <div class="i_center"><img src="/public/v1/img/no_found.gif"><p>未找到与<span>"{$keyword}"</span>相关的信息</p></div>
    </div>
    {/if}
    
</div>

<script type="text/javascript">
function UpdateSearchUserFollow(obj,result)
{
	var parent = $(obj).parent();
	if(result.status == 1)
	{
		parent.html('<img src="./tpl/images/add_ok_03.png">');
	}
}
</script>
<!--{template inc/footer}-->
